﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LimaLims.Application.Service
{
    /// <summary>
    /// 登录输入
    /// </summary>
    public class LoginInput
    {
        /// <summary>
        /// 用户名
        /// </summary>
        /// <example>admin</example>
        [Required(ErrorMessage = "用户名不能为空"), MinLength(5, ErrorMessage = "用户名不能少于5位字符")]
        public string Account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        /// <example>123456</example>
        [Required(ErrorMessage = "密码不能为空"), MinLength(5, ErrorMessage = "密码不能少于5位字符")]
        public string Password { get; set; }

        ///// <summary>
        ///// 验证码Id
        ///// </summary>
        //public long CodeId { get; set; }
        ///// <summary>
        ///// 验证码
        ///// </summary>
        ///// <example>admin</example>
        //[Required(ErrorMessage = "验证码不能为空")]
        //public string Code { get; set; }
    }

    /// <summary>
    /// 注册输入
    /// </summary>
    public class RegisterInput
    {
        /// <summary>
        /// 租户公司名称
        /// </summary>
        public string TenantName { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 管理员用户名
        /// </summary>
        /// <example>admin</example>
        [Required(ErrorMessage = "用户名不能为空"), MinLength(5, ErrorMessage = "用户名不能少于5位字符")]
        public string AdminName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        /// <example>123456</example>
        [Required(ErrorMessage = "密码不能为空"), MinLength(5, ErrorMessage = "密码不能少于5位字符")]
        public string Password { get; set; }
        /// <summary>
        /// 验证码Id
        /// </summary>
        public long CodeId { get; set; }
        /// <summary>
        /// 验证码
        /// </summary>
        /// <example>admin</example>
        [Required(ErrorMessage = "验证码不能为空")]
        public string Code { get; set; }
    }
}
